﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl" lang="nl">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<meta name="description" content="A short description." />
		<meta name="keywords" content="put, keywords, here" />
		<title>PHP-MySQL forum</title>
		<link rel="stylesheet" href="style.css" type="text/css">
	</head>
	<body>
		<h1>Forum Projet SI</h1>
	<div id="wrapper">		
<div id="userbar">
			<?php
			session_start();
			if (isset($_SESSION['signed_in']) && $_SESSION['signed_in']) {
				echo 'Hello <b>' . htmlentities($_SESSION['user_email']) . '</b>. Not you? <a href="signout.php">Sign out</a>';
			} else {
				echo '<a class="item" href="../login.php">Sign in</a> or <a class="item" href="../inscription.php">create an account</a>';
			}
			?>
		</div>
		
			<div id="menu">
				<a class="item" href="../index.php">Return to main page</a> - <a class="item" href="index.php">Forum Home</a> - <a class="item" href="create_topic.php">Create a topic</a> - <a class="item" href="create_cat.php">Create a category</a>

			</div>
			<div id="content">
